package io.github.wslxm.springbootplus2.manage.sys.model.dto;

import io.github.wslxm.springbootplus2.core.base.model.Convert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 *   字典表
 *
 * @author wangsong
 * @WX-QQ 1720696548
 * @date Sun Nov 24 11:23:12 CST 2019
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysDictDTO", description = "字典表")
public class SysDictDTO extends Convert {

    private static final long serialVersionUID = 0L;

    @Schema(title = "字典类型")
    @Range(min = 0, max = 9L, message = "sys.dict.type.Range")
    private Integer type;

    @Schema(title = "字典code")
    @Length(min = 0, max = 32, message = "sys.dict.code.Length")
    private String code;

    @Schema(title = "字典名称")
    @Length(min = 0, max = 64, message = "sys.dict.name.Length")
    private String name;

    @Schema(title = "父Id")
    @Length(min = 0, max = 32, message = "sys.dict.pid.Length")
    private String pid;

    @Schema(title = "描述")
    @Length(min = 0, max = 128, message = "sys.dict.desc.Length")
    private String desc;

    @Schema(title = "排序")
    @Range(min = 0, max = 2147483647L, message = "sys.dict.sort.Range")
    private Integer sort;

    @Schema(title = "禁用（0-否，1-是）")
    @Range(min = 0, max = 9L, message = "sys.dict.disable.Range")
    private Integer disable;

    @Schema(title = "扩展字段 1")
    private String ext1;

    @Schema(title = "扩展字段 2")
    private String ext2;

    @Schema(title = "扩展字段 3")
    private String ext3;
}

